home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / MFC_Samples / collect / mapssvw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  2.1 KB  |  82 lines

  1. // mapssvw.h : header file
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1999 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CMapStringToStringView form view
  15.  
  16. #ifndef __AFXEXT_H__
  17. #include <afxext.h>
  18. #endif
  19.  
  20. class CMapStringToStringView : public CFormView
  21. {
  22. public:
  23.     CMapStringToStringView();           // protected constructor used by dynamic creation
  24.     DECLARE_DYNCREATE(CMapStringToStringView)
  25.  
  26. // Form Data
  27. public:
  28.     //{{AFX_DATA(CMapStringToStringView)
  29. #if defined(_WIN32_WCE_PSPC)
  30.     enum { IDD = IDD_MAP_STRING_TO_STRING_PSPC };
  31. #else
  32.     enum { IDD = IDD_MAP_STRING_TO_STRING };
  33. #endif
  34.     CListBox    m_ctlList;
  35.     CString m_strKey;
  36.     CString m_strValue;
  37.     //}}AFX_DATA
  38.  
  39. // Attributes
  40. public:
  41.     CCollectDoc* GetDocument();
  42.  
  43. // Overrides
  44. public:
  45.     void OnInitialUpdate();
  46.  
  47. // Overrides
  48.     // ClassWizard generate virtual function overrides
  49.     //{{AFX_VIRTUAL(CMapStringToStringView)
  50.     protected:
  51.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  52.     //}}AFX_VIRTUAL
  53.  
  54. // Implementation
  55. protected:
  56.     int FindKeyInListBox(CString& strKey);
  57.     void AddMapEntryToListBox(CString& strKey, CString& strValue);
  58.  
  59.     virtual ~CMapStringToStringView();
  60. #ifdef _DEBUG
  61.     virtual void AssertValid() const;
  62.     virtual void Dump(CDumpContext& dc) const;
  63. #endif
  64.  
  65.     // Generated message map functions
  66.     //{{AFX_MSG(CMapStringToStringView)
  67.     afx_msg void OnAddOrUpdate();
  68.     afx_msg void OnFind();
  69.     afx_msg void OnRemove();
  70.     afx_msg void OnRemoveAll();
  71.     afx_msg void OnSelChangeList();
  72.     //}}AFX_MSG
  73.     DECLARE_MESSAGE_MAP()
  74. };
  75.  
  76. #ifndef _DEBUG
  77. inline CCollectDoc* CMapStringToStringView::GetDocument()
  78.    { return (CCollectDoc*)m_pDocument; }
  79. #endif
  80.  
  81. /////////////////////////////////////////////////////////////////////////////
  82.